package club.haomoon.core.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Schema(title = "用户信息实体")
public class UserData  implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "编号")
    private Integer sn;

   @Schema(title = "用户头像")
    private String avatar;

   @Schema(title = "真实姓名")
    private String realName;

   @Schema(title = "用户昵称")
    private String nickname;

   @Schema(title = "用户账号")
    private String account;

   @Schema(title = "用户密码")
    private String password;

   @Schema(title = "用户电话")
    private String mobile;

   @Schema(title = "用户性别: [1=男, 2=女]")
    private Integer sex;

   @Schema(title = "注册渠道")
    private Integer channel;

   @Schema(title = "是否禁用: [0=否, 1=是]")
    private Integer isDisable;

   @Schema(title = "用户钱包")
    private BigDecimal userMoney;

   @Schema(title = "累计充值")
    private BigDecimal totalRechargeAmount;

    //   @Schema(title = "加密盐巴")
//    private String salt;
   @Schema(title = "最后登录IP")
    private String loginIp;

   @Schema(title = "最后登录时间")
    private Long loginTime;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;

   @Schema(title = "删除时间")
    private Long deleteTime;

   @Schema(title = "是否为新用户: [0=否, 1=是]")
    private Integer isNewUser;

}
